package com.live.video.enums;

/**
 * Description:
 * User: godd
 * Date: 2017-10-11
 * Time: 下午3:39
 */
public enum ResultEnum {
    SUCCESS(1,"成功"),
    ERRO(0,"失败"),

    //红包相关
    RED_PACKET_CREATE_FAILED(1001,"红包创建失败"),
    REDPACKET_IS_OVER(1002,"红包已经被抢光了"),
    REDPACKET_IS_GETTED(1003,"已经抢过这个红包"),

    USER_NOT_EXIST(2001,"用户不存在"),
    USER_PASSWORLD_ERROR(2002,"用户名或密码错误"),
    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
